package com.ruoyi.consumer.domain;

import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户操作对象 consumer_info
 * 
 * @author ruoyi
 * @date 2020-05-25
 */
public class ConsumerInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @Excel(name = "用户ID")
    private String consumerId;

    /** 账号 */
    @Excel(name = "账号")
    private String loginName;

    /** 密码 */
    private String loginPwd;

    /** 性别 */
    @Excel(name = "性别")
    private Long userSex;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    /** 真实姓名 */
    private String trueName;

    /** 生日 */
    private Date brithday;

    /** 用户头像 */
    private String userPhoto;

    /** 用户qq号 */
    @Excel(name = "用户qq号")
    private String userQqNum;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phoneNumber;

    /** 用户邮箱 */
    @Excel(name = "用户邮箱")
    private String userEmail;

    /** 邀请码 */
    private String inCode;

    /** 推广二维码地址 */
    private String saleQrCode;

    /** 账号状态（默认为0正常，1为锁定） */
    private Long userStatus;

    /** null */
    private Long deleteStatus;

    /** null */
    private String weixinId;

    /** null */
    private String lastip;

    /** 是否为首次登录（0默认） */
    private Long isLoginFirst;

    /** 登录次数 */
    private Long loginCount;

    /** 推荐人 */
    private Long parentId;

    /** 微信OpenID */
    private String openId;
    
    
    public ConsumerInfo()
    {
        
    }
    public ConsumerInfo(String consumerId,String telphone,String password,String inCode)
    {
        this.consumerId = consumerId;
        this.phoneNumber = telphone;
        this.loginPwd = password;
        this.inCode = inCode;
    }
    
    
    

    public ConsumerInfo(String telphone, String password)
    {
        this.phoneNumber = telphone;
        this.loginPwd = password;
    }
    
    public ConsumerInfo(String telphone)
    {
        this.phoneNumber = telphone;
    }
    
    
    public void setConsumerId(String consumerId) 
    {
        this.consumerId = consumerId;
    }

    public String getConsumerId() 
    {
        return consumerId;
    }
    public void setLoginName(String loginName) 
    {
        this.loginName = loginName;
    }

    public String getLoginName() 
    {
        return loginName;
    }
    public void setLoginPwd(String loginPwd) 
    {
        this.loginPwd = loginPwd;
    }

    public String getLoginPwd() 
    {
        return loginPwd;
    }
    public void setUserSex(Long userSex) 
    {
        this.userSex = userSex;
    }

    public Long getUserSex() 
    {
        return userSex;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setTrueName(String trueName) 
    {
        this.trueName = trueName;
    }

    public String getTrueName() 
    {
        return trueName;
    }
    public void setBrithday(Date brithday) 
    {
        this.brithday = brithday;
    }

    public Date getBrithday() 
    {
        return brithday;
    }
    public void setUserPhoto(String userPhoto) 
    {
        this.userPhoto = userPhoto;
    }

    public String getUserPhoto() 
    {
        return userPhoto;
    }
    public void setUserQqNum(String userQqNum) 
    {
        this.userQqNum = userQqNum;
    }

    public String getUserQqNum() 
    {
        return userQqNum;
    }
    public void setPhoneNumber(String phoneNumber) 
    {
        this.phoneNumber = phoneNumber;
    }

    public String getPhoneNumber() 
    {
        return phoneNumber;
    }
    public void setUserEmail(String userEmail) 
    {
        this.userEmail = userEmail;
    }

    public String getUserEmail() 
    {
        return userEmail;
    }
    public void setInCode(String inCode) 
    {
        this.inCode = inCode;
    }

    public String getInCode() 
    {
        return inCode;
    }
    public void setSaleQrCode(String saleQrCode) 
    {
        this.saleQrCode = saleQrCode;
    }

    public String getSaleQrCode() 
    {
        return saleQrCode;
    }
    public void setUserStatus(Long userStatus) 
    {
        this.userStatus = userStatus;
    }

    public Long getUserStatus() 
    {
        return userStatus;
    }
    public void setDeleteStatus(Long deleteStatus) 
    {
        this.deleteStatus = deleteStatus;
    }

    public Long getDeleteStatus() 
    {
        return deleteStatus;
    }
    public void setWeixinId(String weixinId) 
    {
        this.weixinId = weixinId;
    }

    public String getWeixinId() 
    {
        return weixinId;
    }
    public void setLastip(String lastip) 
    {
        this.lastip = lastip;
    }

    public String getLastip() 
    {
        return lastip;
    }
    public void setIsLoginFirst(Long isLoginFirst) 
    {
        this.isLoginFirst = isLoginFirst;
    }

    public Long getIsLoginFirst() 
    {
        return isLoginFirst;
    }
    public void setLoginCount(Long loginCount) 
    {
        this.loginCount = loginCount;
    }

    public Long getLoginCount() 
    {
        return loginCount;
    }
    public void setParentId(Long parentId) 
    {
        this.parentId = parentId;
    }

    public Long getParentId() 
    {
        return parentId;
    }
    public void setOpenId(String openId) 
    {
        this.openId = openId;
    }

    public String getOpenId() 
    {
        return openId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("consumerId", getConsumerId())
            .append("loginName", getLoginName())
            .append("loginPwd", getLoginPwd())
            .append("userSex", getUserSex())
            .append("userName", getUserName())
            .append("trueName", getTrueName())
            .append("brithday", getBrithday())
            .append("userPhoto", getUserPhoto())
            .append("userQqNum", getUserQqNum())
            .append("phoneNumber", getPhoneNumber())
            .append("userEmail", getUserEmail())
            .append("inCode", getInCode())
            .append("saleQrCode", getSaleQrCode())
            .append("userStatus", getUserStatus())
            .append("deleteStatus", getDeleteStatus())
            .append("weixinId", getWeixinId())
            .append("createTime", getCreateTime())
            .append("lastip", getLastip())
            .append("isLoginFirst", getIsLoginFirst())
            .append("loginCount", getLoginCount())
            .append("parentId", getParentId())
            .append("openId", getOpenId())
            .toString();
    }
}
